-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MNG-7433] Warn if in parallel build aggregator Mojo found #730
Conversation
Just FYI: this would need to go in all branches, not just master, where the lock is present, so 3.8.x, 3.9.x and master. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect the message to look similar to this:
maven/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/BuilderCommon.java
Lines 144 to 152 in faf5d5d
logger.warn( "*****************************************************************" ); | |
logger.warn( "* Your build is requesting parallel execution, but project *" ); | |
logger.warn( "* contains the following plugin(s) that have goals not marked *" ); | |
logger.warn( "* as @threadSafe to support parallel building. *" ); | |
logger.warn( "* While this /may/ work fine, please look for plugin updates *" ); | |
logger.warn( "* and/or request plugins be made thread-safe. *" ); | |
logger.warn( "* If reporting an issue, report it against the plugin in *" ); | |
logger.warn( "* question, not against maven-core *" ); | |
logger.warn( "*****************************************************************" ); |
maven-core/src/main/java/org/apache/maven/internal/MessageHelper.java
Outdated
Show resolved
Hide resolved
maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please create a separate ticket for this.
Question: I guess this must also go into 3.9.0 and master?
For what exactly ? The terminal width thing ? You'd prefer the terminal width adjustment to be only in 3.9.x / master ?
Yes, the warning should be in all 3 supported branches. Fwiw, I've committed the improvement with the terminal width. The thread safety warning now looks like the following in my terminal:
Btw, having maven displaying such warnings during its own build... !! |
I wonder if it wouldn't be better to fix enhance the
|
For the logging message and its intent in 3.8.x, 3.9.x and master. The goal is to show the user in the changelog that such a warning in this specific case is being implemented. Then MNG-7433 will partially be addressed through this log message and user requirement to restructure code/layout of project. |
I've raised #736 with a new JIRA issue for the warning. |
No description provided.